home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / GetMyIPAddr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-20  |  1.1 KB  |  45 lines  |  [TEXT/MPS ]

  1. /* 
  2.     GetMyIPAddr.h    
  3.     C definitions of parameter block entries needed for IP calls
  4.  
  5.     Copyright Apple Computer, Inc. 1989 
  6.     All rights reserved
  7.     Modifications by Steve Falkenburg, Apple MacDTS 8/91
  8.     
  9. */
  10.  
  11. /* conditional #include -->SJF<-- */
  12.  
  13. #ifndef __GETMYIPADDR__
  14. #define __GETMYIPADDR__
  15.  
  16. /* added for misc. definitions -->SJF<-- */
  17. #ifndef __MACTCPCOMMONTYPES__
  18. #include <MacTCPCommonTypes.h>
  19. #endif
  20.  
  21.  
  22. #define ipctlGetAddr        15          /* csCode to get our IP address */
  23.  
  24. /* changed from ParamBlockHeader -->SJF<-- */
  25.  
  26. #define GetIPParamBlockHeader   \
  27.     struct QElem *qLink;     \
  28.     short qType;             \
  29.     short ioTrap;             \
  30.     Ptr ioCmdAddr;             \
  31.     ProcPtr ioCompletion;     \
  32.     OSErr ioResult;         \
  33.     StringPtr ioNamePtr;     \
  34.     short ioVRefNum;        \
  35.     short ioCRefNum;        \
  36.     short csCode
  37.  
  38. struct GetAddrParamBlock {                                      /* changed from IPParamBlock -->SJF<-- */
  39.     GetIPParamBlockHeader;          /* standard I/O header */   /* changed from ParamBlockHeader -->SJF<-- */
  40.     ip_addr    ourAddress;            /* our IP address */
  41.     long    ourNetMask;            /* our IP net mask */
  42.     };
  43.     
  44. #endif      /* conditional include -->SJF<-- */
  45.